<?
	global $db, $products, $sales_off;
	
	$sql = "select * from products where active = 1 and home = 1 order by id desc limit 8";
	
	//echo $sql;
	$products = $db->getAll($sql);
	
	$sql = "SELECT * FROM `constant` where name= 'sales_off'";
	$sales_off = $db->getRow($sql);
	include(UC_DIR_TPL.'ProductMain.ctp');
?>